<template>
  <div class="container_width common_wrap notice_detail">
    <el-divider>标准公告详情</el-divider>
    <el-card class="box-card">
      <div v-html="infoData"></div>
    </el-card>
  </div>
</template>

<script>
import { standardNoticeInfo } from "@/api/home.js";
import { Base64 } from "js-base64";
export default {
  name: "",
  data() {
    return {
      notice: "",
      infoData: "",
    };
  },
  created() {
    this.notice = this.$route.query.no;
    this.getDetail();
  },
  methods: {
    getDetail() {
      standardNoticeInfo({ standardNoticeNo: this.notice }).then((res) => {
        if (res.code == 200) {
          this.infoData = Base64.decode(res.data.content);
        }
      });
    },
  },
};
</script>

<style lang="scss">
.notice_detail {
  text-align: center;
  .box-card {
    min-height: 300px;
    .el-card__body {
      padding: 20px 40px;
      border-top: 10px solid #2f74d3;
    }
  }
  h1 {
    margin: 20px 0 15px;
    color: red;
  }
  h2 {
    margin: 0;
  }
  p {
    line-height: 28px !important;
    margin-top: 10px;
  }
  p span {
    font-size: 14pt !important;
    font-family: Arial, SimSun, "Microsoft YaHei" !important;
  }
  table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;

    th,
    tr,
    td {
      text-align: center !important;
      vertical-align: middle !important;
    }
    th {
      border-width: 1px !important;
      border-style: solid;
      border-color: rgb(221, 221, 221) !important;
    }
    td {
      box-sizing: border-box;
      margin: 0px;
      padding: 8px;
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
      line-height: 1.42857;
      border-width: 1px;
      border-style: solid;
      border-color: rgb(221, 221, 221) !important;
      font-size: 14px;
    }
    .firstRow {
      background-color: rgb(249, 249, 249);
      font-weight: bold;
      td {font-size: 16px!important;}
    }
  }
  b {
    display: block;
  }
  ul {
    list-style: none;
  }
}
</style>
